home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet News 2001 March
/
Internet News 2001-03 - CD-ROM.rar
/
IN200103.ISO
/
Linux
/
ETLinux
/
_7eboot-0.70a.flp
/
init
/
CONFIG
next >
Wrap
Text File
|
1999-06-27
|
1KB
|
65 lines
### Trinux configuration script
echo "Insert boot floppy and hit RETURN..."
read blah
mount -t msdos /dev/fd0 /boot
#echo -n "Enable IP forwarding? "
#read what
#if [ "$what" = "y" ]
#then
# echo
# cp /dev/null > /boot/conf/ipforward
#fi
echo "Selecting package source..."; echo
echo "-----------------------------------------"
echo "[1] Floppies using data disk"
echo "[2] Hard drive from a DOS/Windows partition"
echo "[3] Network loading from a web/FTP server"
echo "-----------------------------------------"
echo -n "Enter selection: "
read what
if [ "$what" = "3" ]
then
cp /dev/null > /boot/conf/netload
echo -n "Enter URL (be sure to include the last slash): "
read url
echo $url > /boot/conf/url
fi
if ["$what" = "2" ]
then
cp /dev/null > /boot/conf/hdload
echo -n "Enter device: "
read $device
if mount -t msdos $device /mnt
then
echo "$device was mounted sucessfully"
echo $device > /boot/conf/device
umount /mnt
else
echo "Device was not mounted sucessfully"
echo "Try again upon reboot"
fi
fi
echo "Configuring your network device..."
if [ -f /boot/conf/dhcp ]
then
echo "DHCP is currently the default"
echo -n "Is that what you want? [y/n] "
read ok
if [ "$ok" != "y" ]
then
rm /boot/conf/dhcp
else
fi
fi
echo
echo "These settings will be in place the next time you reboot."
echo